#include "Smooth.h"
#include "../utils/Logger.h"

Smooth::Smooth(int smoothType, int aperture) :
        smoothType(smoothType),
        aperture(aperture)
{
}

Smooth::~Smooth() {
}

IplImage* Smooth::apply(const IplImage* in) {
    Log << "Applying smooth effect: " <<
            smoothType << ", " <<
            aperture << endl;
    IplImage *out = cvCreateImage(cvSize(in->width, in->height), in->depth, in->nChannels);
    cvSmooth(in, out, smoothType, aperture, aperture);
    return out;
}
